package com.wx.exam.service.Impl;

import com.wx.exam.dao.RemarkMapper;
import com.wx.exam.pojo.Remark;
import com.wx.exam.service.RemarkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author ychiha
 * @Date 2021/11/26 10:35
 * @Version 1.0
 */
@Service
public class RemarkServiceImpl implements RemarkService {

    @Autowired
    RemarkMapper dao;

    /**
     * 添加评论
     * @param remark
     * @return
     */
    @Override
    public Boolean addRemark(Remark remark) {
        Integer i = dao.addRemark(remark);
        if(i>0){
            return true;
        }else{
            return false;
        }

    }
}
